﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;
using Abp.AutoMapper;
using Abp.Domain.Entities.Auditing;
using FwProject.Authorization.Users;
using FwProject.Core.Car;
using FwProject.Core.DataFilterFactoryinfo;

namespace FwProject.Car.Dto
{
    [AutoMap(typeof(CarInfo))]
    public class CarInfoInputDto
    {
        [Display(Name ="所属工厂")]
        public Guid? FactoryinfoId { get; set; }
        [Required(ErrorMessage ="{0}不能为空")]
        [Display(Name = "司机")]
        public long EmployeeCarUserId { get; set; }
        [Required(ErrorMessage = "{0}不能为空")]
        [Display(Name = "车牌号")]
        public string PlatesNumber { get; set; }
        [Required(ErrorMessage = "{0}不能为空")]
        [Display(Name = "汽车类型")]
        public CarTypeEnum CarType { get; set; } = CarTypeEnum.小型卡车;
        [Required(ErrorMessage = "{0}不能为空")]
        [Display(Name = "吨位")]
        public double ShoppingTon { get; set; } = 1.0;

        [Required(ErrorMessage = "{0}不能为空")]
        [Display(Name = "购买时间")]
        public DateTime CarOld { get; set; }
        [Required(ErrorMessage = "{0}不能为空")]
        [Display(Name = "是否购买保险")]
        public bool Insurance { get; set; } = true;
    }
}
